home *** CD-ROM | disk | FTP | other *** search
- /*
- File: GatewayConfig.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __GATEWAYCONFIG__
- #define __GATEWAYCONFIG__
-
- #ifndef __BLJSTANDARDINCLUDES__
- #include "BLJStandardIncludes.h"
- #endif
-
- #ifndef __HANDLEOBJECT__
- #include "HandleObject.h"
- #endif
-
- class TADASTupleDatabase;
-
- TADASTupleDatabase* GetConfigurationDB();
-
- // This function 'sets up' the configuration database. The whichDB parameters should be
- // the name of a file of type 'pref', creator 'BOVJ', located in the boot volume's
- // preferences folder. This file contains the information which is needed to
- // actually bootstrap the configuration database. If the configuration database
- // can correctly be set up, then this function returns true, otherwise it returns false.
-
- Boolean SetupConfigurationDB (short vRefNum, long dirID, Str63 whichDB);
-
- // This function creates a configuration file in the local preferences file (see the
- // SetupConfigurationDB function). This function does not set up the configuration
- // database. If the preferences file is successfully created, then this function
- // returns true, otherwise it returns false.
-
- Boolean CreateConfigurationDB(short vRefNum, long dirID, Str63 whichDB);
-
-
-
- // These are a bunch of 'short-hand' functions for getting certain types of data out
- // of the configuration database.
-
- Boolean GetConfigCString (char* itemName, char* buffer, short maxBufferSize);
- Boolean GetConfigRString (char* itemName, RString& item);
- Boolean GetConfigLong (char* itemName, long& item);
-
-
-
- #if debug
-
- // This function creates a 'special' preferences file which will use a local (non-ADAS)
- // database instead of the ADAS database setup by the standard CreateConfigurationDB().
- Boolean CreateLocalConfigurationDB(short vRefNum, long dirID, Str63 whichDB);
-
- #endif
-
-
- #endif